package com.mdd.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mdd.common.R;
import com.mdd.pojo.Voucher;
import com.mdd.pojo.request.VoucherAddRequest;
import com.mdd.pojo.request.VoucherPageRequest;
import com.mdd.pojo.request.VoucherUpdateRequest;

/**
* @author 21958
* @description 针对表【voucher】的数据库操作Service
* @createDate 2023-04-03 21:14:37
*/
public interface VoucherService extends IService<Voucher> {

    /**
     * 添加优惠券
     * @return
     */
    R<String> addVoucher(VoucherAddRequest voucherAddRequest);


    /**
     * 修改优惠券信息
     * @param voucherUpdateRequest
     * @return
     */
    R<String> updateVoucher(VoucherUpdateRequest voucherUpdateRequest);

    /**
     * 优惠券分页显示
     * @param voucherPageRequest
     * @return
     */
    R<Page<Voucher>> voucherPage(VoucherPageRequest voucherPageRequest);

}
